home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pine / pine3.07 / contrib / port.isc / pico / os_isc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-16  |  2.8 KB  |  107 lines

  1. /*
  2.  * Program:    Operating system dependent routines - 4.3 bsd
  3.  *
  4.  * Author:    Michael Seibel
  5.  *        Networks and Distributed Computing
  6.  *        Computing & Communications
  7.  *        University of Washington
  8.  *        Administration Building, AG-44
  9.  *        Seattle, WA  98195
  10.  *        Internet: mikes@cac.washington.edu
  11.  *
  12.  * Date:    6 Jan 1992
  13.  * Last Edited:    6 Jan 1992
  14.  *
  15.  * Copyright 1991 by the University of Washington
  16.  *
  17.  *  Permission to use, copy, modify, and distribute this software and its
  18.  * documentation for any purpose and without fee is hereby granted, provided
  19.  * that the above copyright notice appears in all copies and that both the
  20.  * above copyright notice and this permission notice appear in supporting
  21.  * documentation, and that the name of the University of Washington not be
  22.  * used in advertising or publicity pertaining to distribution of the software
  23.  * without specific, written prior permission.  This software is made
  24.  * available "as is", and
  25.  * THE UNIVERSITY OF WASHINGTON DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,
  26.  * WITH REGARD TO THIS SOFTWARE, INCLUDING WITHOUT LIMITATION ALL IMPLIED
  27.  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, AND IN
  28.  * NO EVENT SHALL THE UNIVERSITY OF WASHINGTON BE LIABLE FOR ANY SPECIAL,
  29.  * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  30.  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, TORT
  31.  * (INCLUDING NEGLIGENCE) OR STRICT LIABILITY, ARISING OUT OF OR IN CONNECTION
  32.  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  33.  *
  34.  */
  35.  
  36.  
  37. #ifndef    OSDEP_H
  38. #define    OSDEP_H
  39.  
  40. #ifdef    dyn
  41. #include    <strings.h>
  42. #else
  43. #include    <string.h>
  44. #endif
  45. #undef    CTRL
  46. #include    <signal.h>
  47. #include    <ctype.h>
  48. #include    <sys/types.h>
  49. #include    <sys/ioctl.h>        /* to get at the typeahead */
  50. #include    <sys/stat.h>
  51. #include        <dirent.h>
  52.  
  53. #define TERMCAP 1
  54.  
  55. #define MAILGRAVE       "~/mail/.dead.letter"
  56.  
  57. /*
  58.  * File name separator, as a char and string
  59.  */
  60. #define    C_FILESEP    '/'
  61. #define    S_FILESEP    "/"
  62.  
  63.  
  64. /* Machine/OS definition            */
  65. #define V7      1                       /* V7 UN*X or Coherent or BSD4.2*/
  66. #define JOB_CONTROL    1               /* OS has job control */
  67.  
  68. #ifdef    dyn
  69. #define    strchr    index            /* Dynix doesn't know about strchr */
  70. #define    strrchr    rindex
  71. #endif    /* dyn */
  72.  
  73. extern struct KBSTREE *kpadseqs;
  74. extern int kbseq();
  75.  
  76. #ifdef    termdef
  77. #if    ANSI
  78. #define NROW    25                      /* Screen size.                 */
  79. #define NCOL    80                      /* Edit if you want to.         */
  80. #endif
  81. #else
  82. #if    TERMCAP
  83. extern struct KBSTREE *kpadseqs;
  84. #endif    /* TERMCAP */
  85. #endif
  86.  
  87. #ifdef    maindef
  88. /*    possible names and paths of help files under different OSs    */
  89.  
  90. char *pathname[] = {
  91.     ".picorc",
  92.     "pico.hlp",
  93.     "/usr/local/",
  94.     "/usr/lib/",
  95.     ""
  96. };
  97.  
  98. #define    NPNAMES    (sizeof(pathname)/sizeof(char *))
  99.  
  100. jmp_buf    got_hup;        /* stack environment to handle SIGHUP */
  101. #endif
  102.  
  103. extern int errno;
  104.  
  105.  
  106. #endif    /* OSDEP_H */
  107.